public class 向上转型 {
    public static void main(String[] args) {
        B b = new B();
        A a = b;
        System.out.println(a == b);
    }
}

class A {
}

class B extends A {
}

